import fetch from '../common1';

//登录
export const login = (params) => {
    return fetch.post(params, 'user/login');
}

// 最近七天订单
export const order_trend = (params) => {
        return fetch.get(params, 'index/order-trend');
    }
    // 最近七天销售额
export const money_trend = (params) => {
        return fetch.get(params, 'index/money-trend');
    }
    // 总览
export const order_sta = (params) => {
    return fetch.get(params, 'index/order-sta');
}